<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			var arr = [1,2,45,2];
			
			var arr1 = [];
			arr1[0] = 1;
			arr1[1] = 2;
			arr1[2] = 6;
			
			arr1[9] = 9;
//			[1,2,6,undefined,undefined,undefined,undefined,undefined,undefined,9];
//			console.log(arr1);
//			console.log(arr1[7]);
			
			
			
			
//			创建数组第三种方式
//			var arr2 = new Array(1,2,3,7,3);
//			                    [1,2,3,7,3]
//			console.log(arr2);


			var arr = ['yuonly','张国宝','严森','兰英立']
		</script>
	</body>
</html>







































